sentiment_path = './data/senticnet_word.txt'
nn_count = 0
rb_count = 0
vb_count = 0
jj_count = 0
other_count = 0
count = 0
for line in open(sentiment_path):
    tag = line.split(',')[1]
    count += 1
    if tag in ('NN', 'NNS', 'NNP', 'NNPS'):
        nn_count += 1
    elif tag in ('RB', 'RBS', 'RBR'):
        rb_count += 1
    elif tag in ('VB', 'VBN', 'VBG', 'VBD', 'VBP', 'VBZ'):
        vb_count += 1
    elif tag in ('JJ', 'JJR', 'JJS'):
        jj_count += 1
    else: other_count += 1
print(nn_count / count)
print(rb_count / count)
print(vb_count / count)
print(jj_count / count)
print(1-other_count / count)
# pos: 36 23727 neg: 12.5 23596